package cn.pn.project.client.commodity.follback;

import cn.pn.project.client.commodity.ShowtypeFeign;
import cn.pn.project.pojo.commodity.Showtype;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class ShowtypeFeignFallBack implements ShowtypeFeign {
    @Override
    public List<Showtype> listAllType() {
        System.out.println("出现异常，回滚");
        return null;
    }

    @Override
    public List<Showtype> listChildTypeByFatherId(Integer fatherId) {
        System.out.println("出现异常，回滚2");
        return null;
    }

    @Override
    public String getTypeNameByTypeId(Integer typeId) {
        System.out.println("根据类别id查询类别名称出现异常");
        return null;
    }



}
